package cn.jiyun.controller;

import cn.jiyun.entity.Paper;
import cn.jiyun.entity.PaperVO;
import cn.jiyun.service.PaperFenigService;
import cn.jiyun.service.PaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author weiyuanhang
 * @data: 2023/8/24 002419:45
 * @Package cn.jiyun.controller
 * @email 3185757326@qq.com
 */
@RestController
@RequestMapping("/Mypaper")
public class PaperController {
    @Autowired
    private PaperService paperService;
    @Autowired
    private PaperFenigService paperFenigService;

    @GetMapping("/findByPaper")
    public List<PaperVO> findByPaper(){
        return paperFenigService.findDescPaper();
    }
}

